home *** CD-ROM | disk | FTP | other *** search
- Path: rex.cadvision.com!usenet
- From: schachtf@cadvision.com (schachtf)
- Newsgroups: comp.lang.c
- Subject: C C++ DLL's for VB help
- Date: 5 Apr 1996 02:09:08 GMT
- Organization: Your Organization
- Message-ID: <4k1vc4$11bq@rex.cadvision.com>
- NNTP-Posting-Host: cadd148.cadvision.com
- X-Newsreader: WinVN 0.92.6+
-
- I have recently started programming in VB and attempting to write
- DLL's under Borland C C++ 3.1 . So I can use my C code
- I have an example DLL which compiles ok and from VB it calls a
- dialog box. Now I am trying to add more code to this DLL without any luck
- This code below complies OK but I am havind problems calling it
- from VB
-
- void CALLBACK _export openfile( char *file)
- {
- fopen (file, "r"); // just to see if it works so far
- // do stuff
- }
-
- Is it the code which is incorrect of call from VB ??
- How should my VB code look ??
-
- Thanks to anyone that can help
- Fred....
-